<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>品酒会申请人员列表</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<include file="public/comm" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav fs_xl">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title fs_xl">品酒会申请人员列表</h1>
		</header>
		<include file="public/station_nav" />
		<div class="mui-content fs_xl" style="padding-bottom: 3em;">
			<div class="apply_item">
				<div class="apply_top fs_xl">
					<a class="fs_s">姓名</a>
					<a class="fs_s">ID</a>
					<a class="fs_s">联系方式</a>
					<a class="fs_s">操作</a>
				</div>
				<div class="apply_m fs_xl">
					<ul>
						<volist name="user_list"  id="vo">
							<li>
								<a class="fs_s">{$vo.user_name}</a>
								<a class="fs_s">{$vo.user_id}</a>
								<a class="fs_s">{$vo.mobile}</a>
								<if $vo.status == 0>
									<a class="fs_s" party_apply_id="{$vo.id}"><span class="agree">同意</span>|<span class="reg">拒绝</span></a>
								<elseif $vo.status == 1>
									<a class="fs_s">已同意</a>
								</elseif>
								<else />
									<a class="fs_s">已拒绝</a>
								</if>
							</li>
						</volist>
					</ul>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			$(".apply_m a").find(".agree").click(function(){
				var party_apply_id = $(this).parent().attr("party_apply_id");
				$.ajax({
					type:"POST",
					url:"/Mobile/station/party_apply_opreate",
					data:{"party_apply_id":party_apply_id,"status":"1"},
					dataType:"json",
					success:function(data){
						if(data.status == 1){
							$(this).text("成功");
							$(this).css("color","#999");
						}else{
							alert(data.msg);
						}
					}
				});
				
			})
			$(".apply_m a").find(".reg").click(function(){
				var party_apply_id = $(this).parent().attr("party_apply_id");
				$.ajax({
					type:"POST",
					url:"/Mobile/station/party_apply_opreate",
					data:{"party_apply_id":party_apply_id,"status":"2"},
					dataType:"json",
					success:function(data){
						if(data.status == 1){
							$(this).parents("li").remove();
						}else{
							alert(data.msg);
						}
					}
				});
				
			})
		</script>
	</body>

</html>